package cn.b.sky.mes.andon.model;

import java.util.List;

import cn.b.sky.common.model.ImeCommon;

/**
 * 
 * <strong>Title : AndonTemplate.java<br></strong>
 * <strong>Package : cn.b.sky.mes.andon.model<br></strong>
 * <strong>Description : </strong>暗灯模板对象<br> 
 * <strong>Create on : 2016-10-14 下午01:19:04<br></strong>
 * <p>
 * @author JunLin.Yang<br>
 * @version <strong>v1.0.0</strong><br>
 */
public class AndonTemplate extends ImeCommon {

  /**
   * 暗灯类型编号
   */
  private String andonTypeCode;

  /**
   * 消息规则编号
   */
  private String ruleCode;

  /**
   * 锁定标记
   */
  private Integer lockFlag = 0;

  /**
   * 描述
   */
  private String templateText;

  /**
   * 报警标记
   */
  private Integer alarmFlag = 0;

  /**
   * 暗灯模板编号
   */
  private String templateCode;

  /**
   * 事件编号
   */
  private String eventCode;

  /**
   * ANDON模版属性值集合
   */
  private List<AndonTemplateAttribute> andonTemplateAttributeList;

  /**
   * ANDON类型文本
   */
  private String andonTypeText;

  /**
   * 事件文本
   */
  private String eventText;

  /**
   * 消息规则文本
   */
  private String ruleText;

  public void preProcessingToStore() {
    this.templateCode = this.templateCode.toUpperCase();
  }

  public void setAndonTypeCode(String andonTypeCode) {
    this.andonTypeCode = andonTypeCode;
  }

  public String getAndonTypeCode() {
    return this.andonTypeCode;
  }

  public void setRuleCode(String ruleCode) {
    this.ruleCode = ruleCode;
  }

  public String getRuleCode() {
    return this.ruleCode;
  }

  public void setLockFlag(Integer lockFlag) {
    this.lockFlag = lockFlag;
  }

  public Integer getLockFlag() {
    return this.lockFlag;
  }

  public void setTemplateText(String templateText) {
    this.templateText = templateText;
  }

  public String getTemplateText() {
    return this.templateText;
  }

  public void setAlarmFlag(Integer alarmFlag) {
    this.alarmFlag = alarmFlag;
  }

  public Integer getAlarmFlag() {
    return this.alarmFlag;
  }

  public void setTemplateCode(String templateCode) {
    this.templateCode = templateCode;
  }

  public String getTemplateCode() {
    return this.templateCode;
  }

  public void setEventCode(String eventCode) {
    this.eventCode = eventCode;
  }

  public String getEventCode() {
    return this.eventCode;
  }

  public List<AndonTemplateAttribute> getAndonTemplateAttributeList() {
    return andonTemplateAttributeList;
  }

  public void setAndonTemplateAttributeList(List<AndonTemplateAttribute> andonTemplateAttributeList) {
    this.andonTemplateAttributeList = andonTemplateAttributeList;
  }

  public String getAndonTypeText() {
    return andonTypeText;
  }

  public void setAndonTypeText(String andonTypeText) {
    this.andonTypeText = andonTypeText;
  }

  public String getEventText() {
    return eventText;
  }

  public void setEventText(String eventText) {
    this.eventText = eventText;
  }

  public String getRuleText() {
    return ruleText;
  }

  public void setRuleText(String ruleText) {
    this.ruleText = ruleText;
  }
}